//||=========================================================================||
//||                                                                         ||
//||                             MandelbrotWgt.h                             ||
//||                                                                         ||
//||                           by the_best_goose))                           ||
//||                                                                         ||
//||=========================================================================||

#include <QtOpenGL/QtOpenGL>
#include <QtGui/QtGui>
#include <QtCore/QtCore>
#include "MainWindow.h"

#ifndef MANDELBROTWGT_H_
#define MANDELBROTWGT_H_

//-----------------------------------------------------------------------------

class MandelbrotWgt : public QWidget
{
    Q_OBJECT
public:

    MandelbrotWgt(QWidget* pmand_pic, const MainWindow* pwind,
    		      QWidget* pwgt = NULL);
    ~MandelbrotWgt();

public slots:

    void SetCoord(QPointF coord);
    void SetMapping(string mapping);
    void SetIterationsCount(int count);
    void SetTRe(float re);
    void SetTIm(float im);

private:

    QVBoxLayout main_layout_;
    QHBoxLayout params_layout_;
    QWidget params_;
    QWidget* ppic_;
    QLabel t_lbl_;
    QLabel mapping_lbl_;
    QLabel iters_count_;
    QLabel coord_lbl_;

    float t_re_;
    float t_im_;
    QPointF coord_;
    };

//-----------------------------------------------------------------------------

#endif // MANDELBROTWGT_H_
